local M = {}

--------------------------
-- 公共方法
--------------------------
-- 播放音效
function M:playSound(fileName, isCycle)
    local isCycle = ifnil(isCycle, false)
    local nowSound = sound.playSound("effect/".. fileName ..".mp3", isCycle)
    self._nowSound = nowSound
    return nowSound
end

-- 停止当前音效
function M:stopNowSound()
    if self._nowSound then 
        sound.stopSound(self._nowSound)
        self._nowSound = nil 
    end 
end



--------------------------
-- 语音
--------------------------
-- 示例 在巴士小镇住着四位英雄，他们是 
function M:playEffect179001()
    return self:playSound("179001")
end

return M